<?php include $this->admin_tpl('meta');?>
<title>操作记录</title>
<script type="text/javascript" src="<?php echo STATIC_URL;?>plugin/jquery/1.8.2/jquery.min.js"></script> 
</head>
<body>
<div class="page-container" style="padding-bottom:0;">
	<form id="search">
	<input type="hidden" value="<?php echo $_GET['jst_id']?>" name="jst_id">
	<input type="hidden" value="<?php echo $_GET['o_id']?>" name="o_id">
	</form>
	<table id="table" lay-filter="table" style="font-size:12px;"></table>
</div>
<?php include $this->admin_tpl('footer');?>
<script type="text/javascript" src="<?php echo STATIC_URL;?>plugin/layui/layui.js"></script>
<script>
var db = 'jst_orders';
layui.use(function(){ //亦可加载特定模块：layui.use(['layer', 'laydate', function(){
	table = layui.table; //表格
	util = layui.util; //工具集
	dropdown = layui.dropdown; //下拉菜单
	form = layui.form;
	var index = layer.load(1);
	//执行一个 table 实例
	option = {
		elem: '#table',
		id:'table',
		height: 'full-80',
		limit:30,
		limits:[30,60,90],
		url:'<?php echo U('order_action');?>',
		where: $('#search').serializeJson(),
		title: '商品列表',
		autoSort: false,
		page: {theme:'#409eff',groups:3,hash:true}, //开启分页
		cols: [[ //表头
			{type: 'checkbox'},
			{field: 'oa_id', title: '日志ID', width:80,align:'center'},
			{field: 'name', title: '操作名称', width:174,align:'left'},
			{field: 'remark', title: '备注', width:150,align:'left'},
			{field: 'created', title: '操作时间', width:150,align:'center'},
			{field: 'creator_name', title: '操作者', width:160,align:'center'}
		]],
		done:function(res,curr,count){
			var options = this;
			layer.close(index);
			public_table(db);
		}
	};
	table.render(option);
	init_table(db);	
})
</script>
</body>
</html>